import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/standard/field/` + url, ...arg)


export default {
	async page(data) {

		return await request(`page`, data, 'get')
	},
	async add(data) {
		return await request(`add`, data, 'post')
	},
	async updateById(data) {
		return await request(`update_by_id`, data, 'post')
	},
	async removeById(id) {
		return await request('remove_by_id', {
			id
		}, 'post')
	},
}

